<template>
  <el-table
      :data="tableData"
      style="width: 100%">
    <div v-for="(item,index) in list" :key="index">
      <el-table-column
          :prop="item.prop"
          :label="item.label"
      >
      </el-table-column>
    </div>
    <el-table-column
        fixed="right"
        label="操作"
        width="200">
      <template slot-scope="scope">
        <el-button type="text" size="small" @click="">编辑</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: "hudong",
  data(){
    return{
      //标题数据
      tableData: [
        {
          tiwen: '倪妮',
          neirong: '你好吗？',
          shijian: '0218',
        },
      ],
      //表头数据
      list:[
        {prop:'tiwen',label:'提问者'},
        {prop:'neirong',label:'问题'},
        {prop:'shijian',label:'提问时间'},
      ]
    }
  }
}
</script>

<style scoped>

</style>
